<#It is recommended to test the script on a local machine for its purpose and effects. ManageEngine Desktop Central will not be responsible for any damage/loss to the data/setup based on the behavior of the script. Microsoft store installation script is applicable only for windows 10, windows 11 and windows server 2025 https://learn.microsoft.com/en-us/windows/package-manager/winget/ This script requires proper internet connectivity in the endpoint to install the required application. Description - Script to install Microsoft store applications - https://apps.microsoft.com/home?hl=en-us&gl=IN Parameters - Package ID available in the url of the Microsoft store download page Remarks - Configuration Type - USER ============================================================== #> param ($packageID) Try { if(!($PSBoundParameters.ContainsKey('packageID'))){ Write-Output "No packageID is given" exit 1 } else { cmd.exe /c winget install $packageID --accept-package-agreements --accept-source-agreements --silent Write-Output "Installation completed" exit 0 } } catch { Write-output "ERROR: While installing application" exit 1 }